cmake_minimum_required(VERSION 3.24)

project(gb32960 LANGUAGES C CXX)
message(STATUS "... src ...")

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

add_definitions(-DAIMRT_USE_FMT_LIB)

add_subdirectory(util)
# add_subdirectory(protocol)
# add_subdirectory(pipeline)
add_subdirectory(executor)

file(GLOB_RECURSE src ${CMAKE_CURRENT_SOURCE_DIR}/main.cc)

# Add target
add_executable(${PROJECT_NAME})

# Set source file of target
target_sources(${PROJECT_NAME} PRIVATE ${src})

# Set include path of target
target_include_directories(
  ${PROJECT_NAME}
  PRIVATE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>)


# Set link libraries of target
target_link_libraries(
  ${PROJECT_NAME}
  PRIVATE 
)